#ifndef CUSTOMIZEEDIT_H
#define CUSTOMIZEEDIT_H
#include <QLineEdit>

class CustomizeEdit:public QLineEdit
{
    Q_OBJECT
public:
    CustomizeEdit(QWidget* parent);
    void setMaxLength(int maxlen);
protected:
    void focusOutEvent(QFocusEvent *event) override;
private:
    void limitMaxLength(QString text);
    int _maxlen;
signals:
    void sig_foucus_out();
};

#endif // CUSTOMIZEEDIT_H
